﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LingDong.PictureKeywords;
using NLog;

namespace LingDong.PictureKeywordsExample
{
    internal class AssessmentTest
    {
        internal static void Run()
        {
            logger.Debug("Precision\tRecall\tF\tScore");
            List<double> result = Assessment.RunFullResult(VIPSOutputFile, DOMTreeOutputFile, 0);
            logger.Debug(String.Format("{0}%\t{1}%\t{2}%\t{3}%", result[0], result[1], result[2], result[3]));

            result = Assessment.RunFullResult(VIPSOutputFile, DOMTreeOutputFile, 1);
            logger.Debug(String.Format("{0}%\t{1}%\t{2}%\t{3}%", result[0], result[1], result[2], result[3]));

            result = Assessment.RunFullResult(VIPSOutputFile, visibilityOutputFile, 2);
            logger.Debug(String.Format("{0}%\t{1}%\t{2}%\t{3}%", result[0], result[1], result[2], result[3]));
        }

        private static string DOMTreeOutputFile = @"F:\LingDongData\WebPage\DOMTree_result.txt";
        private static string VIPSOutputFile = @"F:\LingDongData\WebPage\VIPS_result.txt";
        private static string visibilityOutputFile = @"F:\LingDongData\WebPage\Visibility_keywords.txt";

        private static Logger logger = LogManager.GetCurrentClassLogger();
    }
}
